package main

import "fmt"

func total() int {
	count := 0
	for i := 1; i <= 5; i++ {
		for j := 1; j <= 5; j++ {
			for k := 1; k <= 5; k++ {
				if i != j && i != k && j != k {
					num := i*100 + j*10 + k
					count += 1
					fmt.Println(num)
				}
			}
		}
	}
	return count
}

func match() map[string][]string {
	m  := make(map[string][]string)
	m["a"] = []string{"" ,"0"}
	m["b"] = []string{"" ,"0"}
	m["c"] = []string{"" ,"0"}

	l := []string{"x", "y", "z"}

	for k, _ := range m {
		if m[k][1] == "1"{
			continue
		}
		for _, j := range l {
			if j == "x" && k == "a"{
				for k1, _ := range m {
					if k1 == "a"{
						continue
					}
					if j == "x" && k1 == "b"{
						m[k] = []string{j, "1"}
						continue
					}
					if j == "x" || j == "z"{
						if k == "c"{
							continue
						}
					}
					
					if k != "a" {
						m[k] = []string{j, "1"}
					}
				}
			}
			m[k] = []string{j, "1"}
		}
	}
	return m
}

func main()  {
	//count := total()
	//fmt.Println(count)
	b := match()
	fmt.Println(b)
}
